package com.dyh.quickdemo.bizDemo.wmsUrls;

import com.alibaba.fastjson.JSON;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@SpringBootTest
public class WmsConfigurationTest {

	@Autowired
	WmsUrlBean wmsUrlBean;

	/*
	"1" -> "https://wms.leqee.com/wms/api/forward"
		 "2" -> "https://wmswai1.leqee.com/wms/api/forward"
		 "3" -> "https://wmswai2.leqee.com/wms/api/forward"
		"4" -> "https://wmswai3.leqee.com/wms/api/forward"
"5" -> "https://wms.guanyc.cn/wms/api/forward"
	*/

	@Test
	public void test1(){

		System.out.println();
	}

	@Test
	public void test2(){
		System.out.println(JSON.toJSONString(WmsConfiguration.urlId2WmsName));
	}


	@Test
	public void test3(){
		wmsUrlBean.getLeqeeUrlMap().forEach((k,v)->{
			System.out.println(k+"=>");
		});
	}

}